package cn.rengy.order.controller;

import org.springframework.web.bind.annotation.*;

import cn.rengy.lang.ResultEntity;
import lombok.extern.slf4j.Slf4j;


@RestController
@RequestMapping("/order")
@Slf4j
public class OrderController {

    /**
     * 根据用户id查询订单信息
     * @param userId
     * @return
     */
    @RequestMapping("/findOrderByUserId/{userId}")
    public ResultEntity<?> findOrderByUserId(@PathVariable("userId") Integer userId) {
    	return ResultEntity.ok(userId);
    }

    

}
